package com.lechuang.gateway.properties;

import com.lechuang.gateway.model.WhiteListDefine;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author wbk
 * @version 1.0
 * @date 2023/7/12 3:17 PM
 */
@Component
@Data
@ConfigurationProperties(prefix = "whitelist")
public class WhitelistProperties {

    /** 接口白名单 */
    private List<WhiteListDefine> pathWhiteList;

    /** ip白名单 */
    private List<WhiteListDefine> ipWhiteList;
}
